#ifndef LABEL_H
#define LABEL_H

#include "../Widget.h"
#include "../../Include.h"
#include "../Manager.h"

namespace PickinOpenSticks {
    namespace Ui {

        class Label : public Widget {
        public:

            Label() : alignment(Center) {
                type = LABEL;
            }
            sf::String text;

            void AddWidget(Widget* child) {
                cerr << "You cannot add a child widget to a Label!" << endl;
            }
            void SetPos(int x, int y);

            inline void SetAlignment(Alignment a) {
                alignment = a;
            }

        private:
            void Draw(sf::RenderTarget* target);
            Alignment alignment;
        protected:
            void Update(int diff);

        };
    }
}
#endif
